<?php
/**
 * Created by : PhpStorm
 * User: Shane
 * Date: 2023-05-23
 * Time: 16:44
 */
namespace app\api\model;
use think\Model;

class Member extends Model
{
    public $user;
    /**
     * 用户登录
     */
    public function Login(){
        $this->_user = $user;
        $this->_token = Random::uuid();
        Token::set($this->_token, $user->id, $this->keeptime,$type);

        $this->_logined = true;
        //登录成功的事件
        Hook::listen("user_login_successed", $this->_user);
    }
}